import request from "@/utils/request.js";

// 商品分类
let category = (data) => request.get('/category', data);

// 商品列表
let goods_list = (data) => request.get('/products', data);

// 商品详情
let goods_detail = (id, data) => request.get(`/product/detail/${id}`, data);

// 为你推荐
let goods_hot = (data) => request.get('/product/hot', data);

export default {
	category,
	goods_list,
	goods_detail,
	goods_hot,
}